package com.techsoul.module.system.enmus;

public enum ErrorType {

    BUYPRICEIMPORT("BUYPRICEIMPORT", "常规价格导入", "BUYPRICEIMPORT", "常规价格导入"),
    PROMOTIONIMPORT("PROMOTIONIMPORT", "活动价格导入", "PROMOTIONIMPORT", "活动价格导入"),
    ORDERIMPORT("ORDERIMPORT", "订单导入", "ORDERIMPORT", "订单导入"),
    ACCPROCESSIMPORT("ACCPROCESSIMPORT", "结算处理", "ACCPROCESSIMPORT", "结算处理"),
    SPUIMPORT("SPUIMPORT", "历史数据导入", "SPUIMPORT", "历史数据导入"),
    RTORDERIMPORT("RTORDERIMPORT", "退单导入", "RTORDERIMPORT", "退单导入");

    private final String eventCode;
    private final String eventName;
    private final String status;
    private final String statusName;

    ErrorType(String eventCode, String eventName, String status, String statusName) {
        this.eventCode = eventCode;
        this.eventName = eventName;
        this.status = status;
        this.statusName = statusName;
    }

    public String getEventCode() {
        return eventCode;
    }

    public String getEventName() {
        return eventName;
    }

    public String getStatus() {
        return status;
    }

    public String getStatusName() {
        return statusName;
    }

    public static ErrorType getEventEnum(String eventCode) {
        for (ErrorType bean : ErrorType.values()) {
            if (bean.getEventCode().equals(eventCode)) {
                return bean;
            }
        }
        return null;
    }
}
